package jfox.platform.aaa.dao;

import java.util.List;

import jfox.platform.aaa.entity.User;
import jfox.platform.infrastructure.DataAccessObject;

/**
 * @author <a href="mailto:thaiguo@gmail.com">Taiguo Zhang</a>
 */
public interface UserDAO extends DataAccessObject {

    User getUserById(long id);

    User getUserByName(String name);

    User getUserByNameAndPassword(String username, String password);

    void insertUser(User user);

    List<User> getAllUsers();

    int deleteUser(long userId);
    
    int updateUser(User user);
    
}
